<div class="page-title">
    <h4>资产管理</h4>
</div>

<nz-table #nzTable [nzData]="dataSet" [nzPageSize]="10" [nzFrontPagination]='false' [nzNoResult]="noResult"
    nzShowSizeChanger='true' [nzShowTotal]="rangeTemplate" [nzLoading]="isLoading"
     (nzPageIndexChange)="refreshStatus()"
    (nzPageSizeChange)="refreshStatus()" class="table-fixed" [nzPageIndex]='current' [nzTotal]='totalCount'>
    <thead>
        <tr>

            <th nzWidth="160px">名称</th>
            <th nzWidth="90px">生成时间</th>
            <th nzWidth="90px">格式</th>
            <th nzWidth="140px">操作</th>
        </tr>
    </thead>
    <tbody>
        <tr *ngFor="let data of nzTable.data; let i = index">
            <td>{{data._source.name|| "--"}}</td>
            <td>
                <p>{{ (data._source.createdTime | date: "y-MM-dd HH:mm:ss") || "--" }}</p>
            </td>
            <td>
                <p>{{ data._source.type || "--" }}</p>
            </td>

            <td class=" table-opt">
                <a (click)="editModel(data)">导出</a>
                <a (click)="deleteData(data)">删除</a>
                <a [routerLink]="[ '/report', data._source.id ]">查看</a>
            </td>
        </tr>
    </tbody>
    <ng-template #noResult>
        <nz-empty></nz-empty>
    </ng-template>
    <ng-template #rangeTemplate let-range="range" let-total>
        <!--第{{range[0]}}-{{range[1]<=total ? range[1] : total}}条 -->共{{ totalCount  }}条
    </ng-template>
</nz-table>